-
Notifications
You must be signed in to change notification settings - Fork 19
fix issue related to rendering list tags #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes an issue related to rendering list tags by implementing HTML sanitization to handle the conversion between ordered (<ol>) and unordered (<ul>) list elements based on QuillJS data attributes.
- Adds HTML sanitization functionality to properly handle list tag rendering
- Introduces a new
MudHtmlEditorOptionsclass with sanitization controls - Provides backward compatibility through a deprecated parameter for list tag replacement
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| Tizzani.MudBlazor.HtmlEditor.csproj | Bumps version from 2.3.0 to 2.3.1 |
| MudHtmlEditor.razor.js | Adds HTML sanitization methods and options parameter support |
| MudHtmlEditor.razor.cs | Introduces MudHtmlEditorOptions class and deprecated backward compatibility parameter |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
looking forward to this one getting approved. I have struggled with this myself. thank you for fixing this! Eric |
(kinda) fixes #28
This is a potential solution for the ol/ul tag issue, but this is a bit of a can of worms (there are many quill-specific CSS classes applied for things like nested lists, alignment, etc.)
This may be something better left for the next full version update. Will think some more on this over the next few days.